import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import render from './a004';
import get_exam_info from './a008';

// 查询按钮 

import nodejs from '@feidao/web/atom/browser/msg/nodejs';

export default async function (fd: IFeidaoAiBrowserComponent, ...args: any[]) {

	get_exam_info(fd);

	const exam_id = fd.data.exam_id;
	const teacher_name = fd.data.teacher_name;

	fd.data.criteria = {
		exam_id, teacher_name: {
			$regex: '.*' + teacher_name + '.*',
			$options: "i"
		}
	};

	render(fd);
}